<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>

<div class="panel panel-default">
 
    <div class="panel-body">
        <table st-table="items" class="table table-striped table-condensed" style="display:auto;">
            <thead>
            <tr>
			
                <th>昵称</th>
                <th>姓名</th>
                <th>电话</th>
                <th>部门</th>
                <th>子部门</th>
				<th>职位</th>
				<th>状态</th>
				<th>编辑</th>

            </tr>
            </thead>
            <tbody>
            <?php  if(is_array($list)) { foreach($list as $list) { ?>
            <tr>
				<td><?php  echo $list['nickname'];?></td>
				<td><?php  echo $list['name'];?></td>
				<td ><?php  echo $list['phone'];?></td>
				<td ><?php  echo $list['bumen'];?></td>
				<td ><?php  echo $list['jingwushi'];?></td>
				<td ><?php  echo $list['zhiwu'];?></td>
				<td >
                    <?php  if($list['static']==1) { ?>
                    <span class="label" style="background:#56af45;">已通过</span>
                    <?php  } else { ?>
                    <span class="label" style="background:#747474;">未通过</span>
                    <?php  } ?>
                </td>

                <td>
                    <?php  if($list['static']==0&&0) { ?><a class="btn btn-default btn-sm" href="<?php  echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'yes'))?>" title="编辑">审核通过</a><?php  } ?>
                    <a class="btn btn-default btn-sm" href="<?php  echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'edit'))?>" title="编辑"><i class="fa fa-pencil"></i></a>
                    <a class="btn btn-default btn-sm" onclick="return confirm('确认删除吗？');return false;" href="<?php  echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'delete'))?>" title="删除"><i class="fa fa-times"></i></a>
                </td>
            </tr>
            <?php  } } ?>
            </tbody>
        </table>
        <?php  echo $pager?>
    </div>
    
</div>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>